﻿using System;
using CustomKeyGenerator.Services;
using Xtensive.Orm;

namespace CustomKeyGenerator.Model
{
    [HierarchyRoot]
    [KeyGenerator(typeof(SequentialGuidGenerator))]
    public class Person : Entity
    {
        [Field, Key]
        public Guid Id { get; private set; }

        [Field]
        public string Name { get; set; }

        public Person(Session session)
            : base(session)
        {}
    }
}